package com.cgbl.cg.view

import android.content.Context
import android.graphics.Color
import android.view.View
import com.lxj.xpopup.core.BottomPopupView
import com.lxj.xpopup.core.CenterPopupView
import com.lxj.xpopup.util.XPopupUtils
import com.cgbl.cg.R

class PersonalSignPop(context: Context) : CenterPopupView(context) {

    val unSignBg = Color.parseColor("#FFF3C4")
    val signBg = Color.parseColor("#F4F4F4")
    val unSignIcon = R.mipmap.ic_person_un_sign_coin
    val signIcon = R.mipmap.ic_person_sign_coin


    override fun getImplLayoutId(): Int {
        return R.layout.app_pop_personal_sign
    }

    override fun initPopupContent() {
        super.initPopupContent()
        findViewById<View>(R.id.iv_close).setOnClickListener {
            dismiss()
        }
    }

    override fun getMaxWidth(): Int {
        return if (popupInfo.maxWidth == 0) XPopupUtils.getAppWidth(context) else popupInfo.maxWidth
    }
}